package cn.sciento.farm;

import cn.sciento.autoconfigure.admin.EnableSTongAdmin;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.reactive.ReactiveSecurityAutoConfiguration;
import org.springframework.boot.autoconfigure.security.reactive.ReactiveUserDetailsServiceAutoConfiguration;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.boot.autoconfigure.security.servlet.SecurityFilterAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;


@SpringBootApplication()
@EnableDiscoveryClient
@EnableSTongAdmin
public class FarmAdminApplication {

    public static void main(String[] args) {
        try {
            new SpringApplicationBuilder(FarmAdminApplication.class)
                    .run(args);
        } catch (Throwable e) {
            e.printStackTrace();
        }
    }
}
